import classNames from 'classnames'
// import PropTypes from 'prop-types'
type Props = {
  type: string
  className?: string
  onClick?: () => void
}
function Icon({ type, className, ...rest }: Props) {
  return (
    <svg
      {...rest}
      // onClick={onClick}
      className={classNames('icon', className)}
      aria-hidden="true"
    >
      <use xlinkHref={`#${type}`}></use>
    </svg>
  )
}

export default Icon
